/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javaseapp - Switch1
 * <p>Powered by webrx On 2021-07-29 17:20:48
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class For4 {
    public static void main(String[] args) {
        int num = 15;
        for (int i = 1; i < 15; i += 2) {
            //String str = " ".repeat(num--) + "*".repeat(i);
            //System.out.println(str);
            for (int n = --num; n >= 0; n--) {
                System.out.print(" ");
            }

            for (int j = 1; j <= i; j++) {
                System.out.print("*");
            }
            System.out.println();
        }

    }
}
